Uses of Class
edu.uky.ai.path.Location
| Package | Description |
|---|---|
| edu.uky.ai.path | |
| edu.uky.ai.path.gui |
-
Uses of Location in edu.uky.ai.path
Subclasses of Location in edu.uky.ai.path Modifier and Type Class Description classPathA path is a sequence ofLocations that is defined by the last location on the path.classSpriteA sprite is a thing located in a 2D space that can move.Methods in edu.uky.ai.path that return Location Modifier and Type Method Description LocationMap. getLocation(int x, int y)Returns theLocationobject at the given coordinates.LocationMap. getLocation(Sprite sprite)Methods in edu.uky.ai.path that return types with arguments of type Location Modifier and Type Method Description java.util.Iterator<Location>Map. iterator()java.lang.Iterable<Location>Location. neighbors()Returns all locations around this object which are accessible by one step north, south, east, or west.Methods in edu.uky.ai.path with parameters of type Location Modifier and Type Method Description PathPath. addToPath(Location last)Returns a new path with the given location added to the end.booleanPath. contains(Location location)Tests whether or not this path contains the given location.Method parameters in edu.uky.ai.path with type arguments of type Location Modifier and Type Method Description voidMap. forEach(java.util.function.Consumer<? super Location> consumer)Constructors in edu.uky.ai.path with parameters of type Location Constructor Description Path(Location first)Constructs a path with only a single given location. -
Uses of Location in edu.uky.ai.path.gui
Constructor parameters in edu.uky.ai.path.gui with type arguments of type Location Constructor Description GridPanel(Map map, java.util.Set<Location> visited, PriorityQueue<Path> frontier)Constructs a new visualization of a path search.